package com.lyb.mapper;

import com.lyb.pojo.Permission;

import com.lyb.pojo.Role;
import org.apache.ibatis.annotations.*;


import java.util.List;
@Mapper
public interface PermissionMapper {
    @Select("select * from permission")
    List<Permission> queryPage();
    @Update("update permission set name=#{permission.name} where id=#{permission.id}")
    Boolean update(@Param("permission") Permission permission);
    @Delete("delete from permission where id=#{id}")
    Boolean del(Long id);
    @Insert("insert into permission (name) values (#{permission.name})")
    Boolean add(@Param("permission") Permission permission);
}
